Run Script Before Batch Processing